// ==UserScript==
// @name 小说字体设置
// @author 曹开春
// @description 小说字体设置为方正宋刻本秀楷简，字体变大
// @version 1.1.1
// @namespace caokaichun bookset
// @run-at document-body
// @updateURL https://gitee.com/caokaichun/ktools/raw/master/book.js
// @downloadURL https://gitee.com/caokaichun/ktools/raw/master/book.js
// @match www.kbshu.com/*
// @match www.3qdu.net/*
// @match www.35wx.la/*
// @match www.123vxw.cc/*
// @match www.xxsy.net/*
// @match www.22biqu.com/*
// @match www.soduzw.com/*
// @match www.xs55.org/*
// @match www.xsw5.la/*
// @match www.bqdd.info/*
// @match www.biquxs.com/*
// @match www.bqwxg.com/*
// @match www.douyinxs.com/*
// @match www.beqege.cc/*
// @match www.aliwx.com.cn/*
// @match www.ddxs.com/*
// @match www.x33yq.org/*
// @match www.33yq.org/*
// @match www.biququ.info/*
// @match www.xxbiqudu.com/*
// @match www.ibswtan.com/*
// @match www.biqugse.com/*
// @match www.ibooktxt.com/*
// @match www.biqusan.com/*
// @match www.booktxt.net/*
// @match www.dingdiann.com/*
// @match www.ibiquge.net/*
// @match www.ddxstxt8.com/*
// @match www.biquwx.la/*
// @match www.biquku.la/*
// @match www.xbiquge.la/*
// @match www.ddxs.cc/*
// @match www.dushuge.com/*
// @match www.xbiquwx.la/*
// @match www.sinocul.com/*
// @match www.bagzw.com/*
// @match www.wutuxs.com/*
// @match www.62zw.com/*
// @match www.zjzfcj.com/*
// @match www.x33xs.com/*
// @match read.zongheng.com/*

// == contents ==
// @grant GM_addStyle
// ==/UserScript==

var _cssName='.content,#content,#contents,.box_con #content,.box_con #content div,.box_con #content a,#Jcontent .content,#novelcontent,.nr_content .novelcontent p,.font_max';
var _fontFamily='FZSongKeBenXiuKaiS-R-GB';
var _websiteHost = window.location.host;

GM_addStyle(_cssName+'{font-family:'+_fontFamily+';line-height:2;font-size:30px}')

setTimeout(function() {
  const elements = document.querySelectorAll(_cssName);
  for (let i = 0; i < elements.length; i++) {
    elements[i].style.fontFamily = _fontFamily;
  }
}, 500);

if(_websiteHost=='www.aliwx.com.cn'){
    GM_addStyle('.reader-view .chapter-container{font-family:'+_fontFamily+';line-height:2;font-size:30px}.reader-view .chapter-container .chapter-content{line-height:2;}')
}

//字体：楷体 'KaiTi' 仿宋 'FangSong' 微软正黑体 'Microsoft JhengHei'
//方正宋刻本秀楷简 'FZSongKeBenXiuKaiS-R-GB' 方正龙爪简 'FZLongZhaoS-R-GB' 方正清刻本悦宋简体 'FZQingKeBenYueSongS-R-GB' 方正兰亭黑简 'FZLanTingHeiS-R-GB'
//方正小标宋简体 'FZXiaoBiaoSong-B05S' 方正小标宋简体_GBK 'FZXiaoBiaoSong-B05' 方正报宋简体 'FZBaoSong-Z04S'
//苹方字体简体常规 'PingFangSC-Regular'
//霞鹜文楷 'LXGW WenKai' 霞鹜文楷等宽 'LXGW WenKai Mono'
